Skip to content

Conversation

@roomote
Copy link
Contributor

@roomote roomote bot commented Jul 16, 2025

Fixes issue #5772 by adding await this.postStateToWebview() to the clearTask() method in ClineProvider.ts to ensure the UI is properly updated when a task is cleared.


Important

Fixes issue #5772 by ensuring the UI updates correctly when a task is cleared in ClineProvider.ts.

This description was created by Ellipsis for 74c5f77. You can customize this summary. It will automatically update as commits are pushed.

Fixes issue #5772 where clicking the plus button after completing right-click context menu tasks (like "Explain Code" or "Improve Code") would incorrectly show the previous completed task interface instead of the new task interface on the first attempt.

The issue was in the clearTask() method in ClineProvider.ts which only called removeClineFromStack() but did not update the webview state. This caused the UI to continue showing the old task interface because the webview was not notified that the task had been cleared.

The fix adds await this.postStateToWebview() to the clearTask() method to ensure the UI is properly updated when a task is cleared, which resolves the issue where users had to click the plus button twice to get the new task interface.
@roomote roomote bot requested review from cte, jr and mrubens as code owners July 16, 2025 07:55
@dosubot dosubot bot added size:XS This PR changes 0-9 lines, ignoring generated files. bug Something isn't working labels Jul 16, 2025
@hannesrudolph hannesrudolph added the Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. label Jul 16, 2025
@daniel-lxs daniel-lxs moved this from Triage to Roomote/renovate BOT in Roo Code Roadmap Jul 17, 2025
@daniel-lxs daniel-lxs closed this Sep 16, 2025
@github-project-automation github-project-automation bot moved this from Renovate BOT to Done in Roo Code Roadmap Sep 16, 2025
@github-project-automation github-project-automation bot moved this from New to Done in Roo Code Roadmap Sep 16, 2025
@daniel-lxs daniel-lxs deleted the fix/issue-5772-new-task-interface branch September 16, 2025 16:02
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

bug Something isn't working Issue/PR - Triage New issue. Needs quick review to confirm validity and assign labels. size:XS This PR changes 0-9 lines, ignoring generated files.

Projects

Archived in project

Development

Successfully merging this pull request may close these issues.

4 participants